Define form view

Overview

When you add an entity to the metamodel, the Detail view is the first view for that entity. Its [Detail] view is also a form view. In the form view definition, the following items are defined as the representation format of the model.

  • Fields to edit on the form and their layout
  • Field representation format (text/list/grid etc.)

Below, let's update the definition of the [Detail] view in the next step so that the details of the [Use Case Model] can be edited in the Form view.

  1. Add [Actor] and [Use case] which are components of [Use Case Model] to the form.
  2. Change the display format of [Use case] to grid

Image of the defining form view

Form View Definition of Use Case Diagram


1. Add actors and use cases to the form

Add field

When you view the Use Case Model Detail view, the Form view shows the title and the Description field. The model actors [Actor] and [Use case] can also be added to the form view as fields.

This section describes the procedure to add [Actor] and [Use case] to the form view in the following expression format.

Filelds Representation (form element)
Actor List
Use case List

Add Field

Operating procedure

  1. Select an existing element on the form to identify the view to which you want to add the field. This will activate the commands provided on the ribbon under Profile> Form.
  2. From the ribbon, click Profile> Form> Add Exist Fields to add form elements for each field from the New Control dialog.

Add lower field

The fields that [Actor] has can also be added under [Actor]. To add the Actor Description to the Form View:

Add subfields

Operating procedure

  1. Select one of the actors listed on the form. If the list is empty, add an actor and then select it.
  2. As before, from the ribbon click Profile> Form> Add Exist Fields to add the Description field.

2. Change the display format of use cases to grid

Change to grid format and add columns

The components of the model can be expressed in grid format as well as list format.

This section describes the procedure for changing the [Use case] list format to the grid format and adding the [Description] and [Precondition] fields to the columns of the grid.

Change display format to grid

Operating procedure

  1. Select the field on the form view whose presentation format you want to change.
  2. From the ribbon, click Form> Control> Kind and click Grid to switch to grid format.
  3. Select one of the use cases displayed in the grid. If the grid is empty, add a use case and then select it.
  4. From the ribbon, click Form> Grid> Add Exist Field Column and select the field in the Add New Column dialog to add it to the grid column.